package com.bdqn.vueboot.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.vueboot.config.R;
import com.bdqn.vueboot.entity.Building;
import com.bdqn.vueboot.entity.Matters;
import com.bdqn.vueboot.service.BuildingService;
import com.bdqn.vueboot.service.MattersService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("matters")
@CrossOrigin
public class MattersController extends ApiController {
    @Resource
    private MattersService mattersService;

    @GetMapping("/list")
    public R selectAll() {
        List<Matters> list = mattersService.list();
        return R.success(list);
    }

}
